package com.kyzh.core.adapters

import com.chad.library.adapter.base.BaseNodeAdapter
import com.chad.library.adapter.base.entity.node.BaseNode
import com.gushenge.core.beans.GiftList
import com.kyzh.core.adapters.providers.GiftItemProvider
import com.kyzh.core.adapters.providers.GiftProvider

class GiftListAdapter : BaseNodeAdapter(){

    init {
        addNodeProvider(GiftProvider())
        addNodeProvider(GiftItemProvider())
    }
    override fun getItemType(data: List<BaseNode>, position: Int): Int {
        return if (data[position] is GiftList) 0 else 1
    }
}